/*
 * @Description: 你的代码我的心
 * @Author: GGB
 * @Date: 2021-12-22 14:18:13
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-30 17:59:21
 */
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
// 商品参数
export type GoodsParams = {
  listType?: string;
  goodsId?: string;
}
// 更新商品状态
export type UpdateState = {
  goodsIds: String | Number[];
  state: boolean;
}

export type SkuListType = {
  id: number;
  goods_sku_id: string;
  goods_id: number;
  stock_num: number;
}

// 更新商品库存
export type UpdateStockParam = {
  goodsId: string | number;
  form: {
    skuList: SkuListType[];
  }
}

export type GoodsItemModel = {
  alone_grade_equity?: any[];
  categoryIds?: number[];
  content?: string;
  create_time?: string;
  deduct_stock_type?: number;
  delivery_id?: number;
  goods_id?: number;
  goods_image?: string;
  goods_images?: any[];
  goods_name?: string;
  goods_no?: string;
  goods_price_max?: string;
  goods_price_min?: string;
  goods_sales?: number;
  is_alone_grade?: number;
  is_alone_points_discount?: number;
  is_delete?: boolean;
  is_enable_grade?: number;
  is_points_discount?: number;
  is_points_gift?: number;
  line_price_max?: string;
  line_price_min?: string;
  points_discount_config?: string;
  sales_actual?: number;
  sales_initial?: number;
  selling_point?: string;
  serviceIds?: number[];
  skuList?: SkuListType[];
  sku_list?: any[];
  sort?: number;
  specList?: any[];
  spec_type?: number;
  status?: number;
  stock_total?: number;
  store_id?: number;
  update_time?: string;
}

export type GoodsPageParms = BasicPageParams & GoodsParams;


export type GoodsListGetResultModel = BasicFetchResult<any>;
